#include<iostream>
using namespace std;
int main()
{
	string a;
	cin >> a;
	int c = 0, q = 0, u = 0;
	for (int i = 0; a[i] != '\0'; i++)
	{
		if (a[i] == 'c' || a[i] == 'C')
		{
			c++;
		}
		if (a[i] == 'q' || a[i] == 'Q')
		{
			q++;
		}
		if (a[i] == 'u' || a[i] == 'U')
		{
			u++;
		}
	}
	while (c + q + u != 0) {
		if (c)
		{
			cout << "C";
			c--;
		}
		if (q)
		{
			cout << "Q";
			q--;
		}
		if (u)
		{
			cout << "U";
			u--;
		}
	}
	return 0;
}